package biz

import (
	"context"
	"fmt"
	"github.com/go-kratos/kratos/v2/log"
	v1 "sgw-services/api/rate/service/v1"
)

type RateRepo interface {
	Quote(context.Context, *v1.HelloRequest) error
}

type RateUsecase struct {
	repo RateRepo
	log  *log.Helper
}

func NewRateUsecase(repo RateRepo, logger log.Logger) *RateUsecase {
	return &RateUsecase{repo: repo, log: log.NewHelper(logger)}
}

func (uc *RateUsecase) Quote(ctx context.Context, req *v1.HelloRequest) error {
	fmt.Println("aaaaa")
	return uc.repo.Quote(ctx, req)
}
